package android.video.online.ui.user;

import android.os.Message;
import android.video.online.R;
import android.video.online.ui.BasicActivity;
import android.video.online.widget.JayEditText;
import android.view.View;
import android.widget.TextView;

/**
 * Created by Jay on 2017/8/13.
 */
public class UserInfoActivity extends BasicActivity implements View.OnClickListener {

    private JayEditText etNickname;
    private TextView tvSubmit;

    @Override
    public int setLayoutId() {
        return R.layout.activity_user_info;
    }

    @Override
    public void init() {
        initView();
        initListener();
    }

    private void initListener() {
        tvSubmit.setOnClickListener(this);
    }

    private void initView() {
        tvSubmit = (TextView) findViewById(R.id.tv_submit);
        etNickname = (JayEditText) findViewById(R.id.et_nickname);
    }

    @Override
    public void handlerMessage(Message msg) {

    }

    @Override
    public void onClick(View v) {
        showToast(etNickname.getText().toString());
    }
}
